Debitor: D-3101100 - Michelle Matthieu from 2000:
Create Self Debitor for Partner with Identical Contact Data| name | value |
|---|---|
| partnerNumber | P-31011 |
| dateOfDeath | 2024-11-15 |
| representativeGivenName | Lena |
| representativeFamilyName | Stadland |
| communityOfHeirsPostalAddress | “street”: “Im Wischer 14”, “zipcode”: “22987”, “city”: “Hamburg”, “country”: “Germany” |
| communityOfHeirsOfficePhoneNumber | +49 40 666666 |
| communityOfHeirsEmailAddress | lena.stadland@example.org |
HTTP GET "/api/hs/office/partners/P-31011" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
{
"uuid" : "0c18087d-1a1f-4536-a97c-7aadb7ffa8ee", // Partner: P-31011 - Michelle Matthieu
"partnerNumber" : "P-31011",
"partnerRel" : {
"uuid" : "854e89b8-2c77-48fd-b859-701dc7b18897",
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "6e02bc9b-f056-4111-a571-960571fd7d99", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Michelle",
"familyName" : "Matthieu-Zhang"
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "df5801c0-49bd-4924-af68-3c4a8b37ae2a", // Contact: Michelle Matthieu
"caption" : "Michelle Matthieu",
"postalAddress" : {
"zipcode" : "22123",
"country" : "Germany",
"city" : "Hamburg",
"street" : "An der Wandse 34",
"name" : "Michelle Matthieu"
},
"emailAddresses" : {
"main" : "michelle@matthieu.example.org"
},
"phoneNumbers" : {
"mobile" : "+49 152 1234567"
}
}
},
"details" : {
"uuid" : "8988e4f7-cd99-4ab2-90dc-ab778db5b81d",
"registrationOffice" : null,
"registrationNumber" : null,
"birthName" : "Eichbaum",
"birthPlace" : "Neustadt a.d.R.",
"birthday" : "1951-03-25",
"dateOfDeath" : null
}
}
Even in production data we expect this query to return just a single result.
HTTP PATCH "/api/hs/office/partners/0c18087d-1a1f-4536-a97c-7aadb7ffa8ee" // Partner: P-31011 \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"partnerRel" : {
"holder" : {
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang"
},
"contact" : {
"caption" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"postalAddress" : {
"whatever" : "any key is allowed here",
"name" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"co" : "Lena Stadland",
"street" : "Im Wischer 14",
"zipcode" : "22987",
"city" : "Hamburg",
"country" : "Germany"
},
"phoneNumbers" : {
"office" : "+49 40 666666"
},
"emailAddresses" : {
"main" : "lena.stadland@example.org"
}
}
}
}
EOF
=> status: 200 OK
{
"uuid" : "0c18087d-1a1f-4536-a97c-7aadb7ffa8ee", // Partner: P-31011
"partnerNumber" : "P-31011",
"partnerRel" : {
"uuid" : "854e89b8-2c77-48fd-b859-701dc7b18897",
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589",
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "01e3e3aa-de09-4021-86c6-108de4b0e5e2",
"caption" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"postalAddress" : {
"zipcode" : "22987",
"country" : "Germany",
"city" : "Hamburg",
"street" : "Im Wischer 14",
"name" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"co" : "Lena Stadland",
"whatever" : "any key is allowed here"
},
"emailAddresses" : {
"main" : "lena.stadland@example.org"
},
"phoneNumbers" : {
"office" : "+49 40 666666"
}
}
},
"details" : {
"uuid" : "8988e4f7-cd99-4ab2-90dc-ab778db5b81d",
"registrationOffice" : null,
"registrationNumber" : null,
"birthName" : "Eichbaum",
"birthPlace" : "Neustadt a.d.R.",
"birthday" : "1951-03-25",
"dateOfDeath" : null
}
}
HTTP POST "/api/hs/office/relations" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"type" : "REPRESENTATIVE",
"anchor.uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589", // Person: Erbengemeinschaft Michelle Matthieu-Zhang
"holder" : {
"personType" : "NATURAL_PERSON",
"givenName" : "Lena",
"familyName" : "Stadland"
},
"contact.uuid" : "01e3e3aa-de09-4021-86c6-108de4b0e5e2" // Contact: Erbengemeinschaft Michelle Matthieu-Zhang
}
EOF
=> status: 201 CREATED 0733c583-f949-4f10-a6d6-80961e8c527e
{
"uuid" : "0733c583-f949-4f10-a6d6-80961e8c527e",
"anchor" : {
"uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589", // Person: Erbengemeinschaft Michelle Matthieu-Zhang
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "bbb6062c-5210-4c32-a96d-99a650d64845",
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Lena",
"familyName" : "Stadland"
},
"type" : "REPRESENTATIVE",
"mark" : null,
"contact" : {
"uuid" : "01e3e3aa-de09-4021-86c6-108de4b0e5e2", // Contact: Erbengemeinschaft Michelle Matthieu-Zhang
"caption" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"postalAddress" : {
"zipcode" : "22987",
"country" : "Germany",
"city" : "Hamburg",
"street" : "Im Wischer 14",
"name" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"co" : "Lena Stadland",
"whatever" : "any key is allowed here"
},
"emailAddresses" : {
"main" : "lena.stadland@example.org"
},
"phoneNumbers" : {
"office" : "+49 40 666666"
}
}
}
HTTP GET "/api/hs/office/partners/P-31011" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
{
"uuid" : "0c18087d-1a1f-4536-a97c-7aadb7ffa8ee", // Partner: P-31011
"partnerNumber" : "P-31011",
"partnerRel" : {
"uuid" : "854e89b8-2c77-48fd-b859-701dc7b18897",
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589", // Person: Erbengemeinschaft Michelle Matthieu-Zhang
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "01e3e3aa-de09-4021-86c6-108de4b0e5e2", // Contact: Erbengemeinschaft Michelle Matthieu-Zhang
"caption" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"postalAddress" : {
"zipcode" : "22987",
"country" : "Germany",
"city" : "Hamburg",
"street" : "Im Wischer 14",
"name" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"co" : "Lena Stadland",
"whatever" : "any key is allowed here"
},
"emailAddresses" : {
"main" : "lena.stadland@example.org"
},
"phoneNumbers" : {
"office" : "+49 40 666666"
}
}
},
"details" : {
"uuid" : "8988e4f7-cd99-4ab2-90dc-ab778db5b81d",
"registrationOffice" : null,
"registrationNumber" : null,
"birthName" : "Eichbaum",
"birthPlace" : "Neustadt a.d.R.",
"birthday" : "1951-03-25",
"dateOfDeath" : null
}
}
HTTP GET "/api/hs/office/relations?relationType=EX_PARTNER&personUuid=6e02bc9b-f056-4111-a571-960571fd7d99" // Person: Michelle Matthieu-Zhang \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "8af134ca-e2b0-4c9b-8c14-9e5d6e6e46db",
"anchor" : {
"uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589", // Person: Erbengemeinschaft Michelle Matthieu-Zhang
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "6e02bc9b-f056-4111-a571-960571fd7d99", // Person: Michelle Matthieu-Zhang
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Michelle",
"familyName" : "Matthieu-Zhang"
},
"type" : "EX_PARTNER",
"mark" : null,
"contact" : {
"uuid" : "01e3e3aa-de09-4021-86c6-108de4b0e5e2", // Contact: Erbengemeinschaft Michelle Matthieu-Zhang
"caption" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"postalAddress" : {
"zipcode" : "22987",
"country" : "Germany",
"city" : "Hamburg",
"street" : "Im Wischer 14",
"name" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"co" : "Lena Stadland",
"whatever" : "any key is allowed here"
},
"emailAddresses" : {
"main" : "lena.stadland@example.org"
},
"phoneNumbers" : {
"office" : "+49 40 666666"
}
}
} ]
HTTP GET "/api/hs/office/relations?relationType=REPRESENTATIVE&personUuid=ba98d408-fabf-4677-afcc-53ef336b2589" // Person: Erbengemeinschaft Michelle Matthieu-Zhang \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "0733c583-f949-4f10-a6d6-80961e8c527e", // Representative-Relation: Lena Stadland for Erbengemeinschaft Michelle Matthieu-Zhang
"anchor" : {
"uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589", // Person: Erbengemeinschaft Michelle Matthieu-Zhang
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "bbb6062c-5210-4c32-a96d-99a650d64845", // Person: Lena Stadland
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Lena",
"familyName" : "Stadland"
},
"type" : "REPRESENTATIVE",
"mark" : null,
"contact" : {
"uuid" : "01e3e3aa-de09-4021-86c6-108de4b0e5e2", // Contact: Erbengemeinschaft Michelle Matthieu-Zhang
"caption" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"postalAddress" : {
"zipcode" : "22987",
"country" : "Germany",
"city" : "Hamburg",
"street" : "Im Wischer 14",
"name" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"co" : "Lena Stadland",
"whatever" : "any key is allowed here"
},
"emailAddresses" : {
"main" : "lena.stadland@example.org"
},
"phoneNumbers" : {
"office" : "+49 40 666666"
}
}
} ]
HTTP GET "/api/hs/office/debitors?partnerNumber=P-31011" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "b4b912d7-73f3-4aec-81fb-c3db2cbbb883", // Debitor: D-3101100 - Michelle Matthieu
"debitorRel" : {
"uuid" : "5298cf58-3e27-4562-96d7-a76e5a14ad12",
"anchor" : {
"uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589", // Person: Erbengemeinschaft Michelle Matthieu-Zhang
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589", // Person: Erbengemeinschaft Michelle Matthieu-Zhang
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "DEBITOR",
"mark" : null,
"contact" : {
"uuid" : "df5801c0-49bd-4924-af68-3c4a8b37ae2a", // Contact: Michelle Matthieu
"caption" : "Michelle Matthieu",
"postalAddress" : {
"zipcode" : "22123",
"country" : "Germany",
"city" : "Hamburg",
"street" : "An der Wandse 34",
"name" : "Michelle Matthieu"
},
"emailAddresses" : {
"main" : "michelle@matthieu.example.org"
},
"phoneNumbers" : {
"mobile" : "+49 152 1234567"
}
}
},
"debitorNumber" : "D-3101100",
"debitorNumberSuffix" : "00",
"partner" : {
"uuid" : "0c18087d-1a1f-4536-a97c-7aadb7ffa8ee", // Partner: P-31011
"partnerNumber" : "P-31011",
"partnerRel" : {
"uuid" : "854e89b8-2c77-48fd-b859-701dc7b18897",
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "ba98d408-fabf-4677-afcc-53ef336b2589", // Person: Erbengemeinschaft Michelle Matthieu-Zhang
"personType" : "UNINCORPORATED_FIRM",
"tradeName" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "01e3e3aa-de09-4021-86c6-108de4b0e5e2", // Contact: Erbengemeinschaft Michelle Matthieu-Zhang
"caption" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"postalAddress" : {
"zipcode" : "22987",
"country" : "Germany",
"city" : "Hamburg",
"street" : "Im Wischer 14",
"name" : "Erbengemeinschaft Michelle Matthieu-Zhang",
"co" : "Lena Stadland",
"whatever" : "any key is allowed here"
},
"emailAddresses" : {
"main" : "lena.stadland@example.org"
},
"phoneNumbers" : {
"office" : "+49 40 666666"
}
}
},
"details" : {
"uuid" : "8988e4f7-cd99-4ab2-90dc-ab778db5b81d",
"registrationOffice" : null,
"registrationNumber" : null,
"birthName" : "Eichbaum",
"birthPlace" : "Neustadt a.d.R.",
"birthday" : "1951-03-25",
"dateOfDeath" : null
}
},
"billable" : true,
"vatId" : null,
"vatCountryCode" : null,
"vatBusiness" : false,
"vatReverseCharge" : false,
"refundBankAccount" : null,
"defaultPrefix" : "mim"
} ]
generated on 2026-08-10 04:42:28 for branch HEAD